﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dycox.Reporting
{
    [Serializable]
    public class InvalidPaperNameException : Exception
    {
        public InvalidPaperNameException(string paperName)
            : base("Invalid paper size " + paperName)
        {
            _paperName = paperName;
        }

        private InvalidPaperNameException(string message, Exception inner)
            : base(message, inner)
        {
        }

        protected InvalidPaperNameException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context)
        {
        }

        private string _paperName;

        public string PaperName
        {
            get { return _paperName; }
        }

    }
}
